<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="cn.com.codes.common.util.StringUtils"%>
<%@page import="cn.com.codes.framework.security.VisitUser"%>
<%@page import="cn.com.codes.framework.security.Visit"%>
<%@page import="cn.com.codes.framework.security.filter.SecurityContextHolder"%>
<%@page import="cn.com.codes.framework.security.filter.SecurityContext"%>

<%
	SecurityContext sc = SecurityContextHolder.getContext();
	Visit visit = sc.getVisit();
	VisitUser user = visit.getUserInfo(VisitUser.class);
	
	String accountId = (null != user.getId()) ? user.getId() : "";
	String loginName = (null != user.getLoginName()) ? user.getLoginName() : "";
	String userName = (null != user.getName()) ? user.getName() : "";
	String currTaksId = visit.getTaskId();
	if (StringUtils.isNullOrEmpty(userName)) {
		userName = loginName;
	}
%>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/itest/css/apiManager/treeToJsonPathPage.css"/>

<div class="exui-layout" style="width:100%;height:100%;">
	<div data-options="region:'west'" id="treeCon" title="<div><span>响应数据 &nbsp;</span><!-- <a href='#' class='exui-linkbutton'>普通视图(双击切换)</a> --></div>" style="width:230px;padding:10px;overflow-y:auto;">
		<ul id="jsonPathTree" class="exui-tree"></ul>
	</div>
	<div data-options="region:'center'" style="overflow-y: scroll;overflow-x: hidden;">
	<!-- <button type="button" class="btn btn-default bntcss hoverBu" onclick="showJsonPathSource();" style="padding:6.5px"><i class="glyphicon glyphicon-list"></i>源码切换</button> -->
		<table id="assertList" style="width:100%;height: auto;margin-top: 15px;margin-left: 5%;">
			
		</table>
			
		<table id="sourceJsonPath" style="width:100%;height: auto;margin-top: 15px;margin-left: 10%;display:none;">
		
		</table>
		<div id="addOrClearFooter" align="center" style="padding:15px;display: none;">
			<a class="exui-linkbutton" data-options="btnCls:'primary',size:'xs'" onclick="saveJsonPath()">保存</a>
			<a class="exui-linkbutton"  data-options="btnCls:'default',size:'xs'" style=" border: 1px solid #1E7CFB;color: #1E7CFB;" id="clearContent">重置</a>
			<a class="exui-linkbutton"  data-options="btnCls:'default',size:'xs'" style=" border: 1px solid #1E7CFB;color: #1E7CFB;" id="cancleWin">取消</a>
		</div>
		
	</div>
</div>

<script src="<%=request.getContextPath()%>/itest/js/apiManager/apiCrontabLog/treeToJsonPathPage.js" type="text/javascript" charset="utf-8"></script>